import com.spring.demo.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class APP {
    public static void main(String[] args) {
        //得到Spring
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-config.xml");
        //从Spring中得到Bean对象


        Student student =context.getBean("student", Student.class);
        student.hello();
    }
}
